/// up_at : 1735279266
/// live_time : -1
/// client_addr : "219.133.10.102:40253"
/// down_at : 1735278408
/// is_online : true

/// 设备在线 - 数据格式
class OnlineInfo {
  OnlineInfo({
      this.upAt, 
      this.liveTime, 
      this.clientAddr, 
      this.downAt, 
      this.isOnline,});

  OnlineInfo.fromJson(dynamic json) {
    upAt = json['up_at'];
    liveTime = json['live_time'];
    clientAddr = json['client_addr'];
    downAt = json['down_at'];
    isOnline = json['is_online'];
  }
  num? upAt;
  num? liveTime;
  String? clientAddr;
  num? downAt;
  bool? isOnline;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['up_at'] = upAt;
    map['live_time'] = liveTime;
    map['client_addr'] = clientAddr;
    map['down_at'] = downAt;
    map['is_online'] = isOnline;
    return map;
  }

}